package com.chiaching.pms.config;

import com.chiaching.pms.handle.MvcHandler;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author jiajing.he
 * @date 2021/4/4 11:00
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {


    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new MvcHandler()).addPathPatterns("/**");
    }
}
